#include <malloc.h>

typedef struct {
		int size;
        int* q;					/* body of queue */
        int first;              /* position of first element */
        int last;               /* position of last element */
        int count;              /* number of queue elements */
} queue;

void init_queue(queue *q, int size);
int enqueue(queue *q, int x);
int dequeue(queue *q);
int empty(queue *q);
